package com.jiangjiang.eshop.commodity.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.commodity.domain.BrandEntity;
import com.jiangjiang.eshop.commodity.dto.BrandDTO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface BrandConvert {

    Page<BrandDTO> convert2DTOaPage(Page<BrandEntity> entityPage);

    BrandDTO convert2DTO(BrandEntity entity);

    BrandEntity convert2Entity(BrandDTO dto);
}
